Skip to content

Instantly share code, notes, and snippets.

@techbrownbags
Last active April 4, 2019 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techbrownbags/0b08b6ff42698558edd6e512c44f78fe to your computer and use it in GitHub Desktop.
Save techbrownbags/0b08b6ff42698558edd6e512c44f78fe to your computer and use it in GitHub Desktop.
django ajax search
class System(models.Model):
system_id = models.IntegerField(primary_key=True)
name = models.CharField(max_length=200)
comments = models.TextField()
# ASSOCIATIONS
site = models.ForeignKey(Site,
on_delete=models.SET_NULL,
null=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment