Given the following models (shortened for understanding):
class Venue(models.Model):
name = models.CharField(unique=True)
class Band(models.Model):
name = models.CharField(unique=True)
class Event(models.Model):
name = models.CharField(max_length=50, unique=True)
bands = models.ManyToManyField(Band)
venue = models.ForeignKey(Venue)
start = models.DateField()
end = models.DateField()
The admin area works great for what I'm doing, but I would like to open the site a bit so that some users can add new events. For public parts, I have several “administrative” fields on these models that I don’t want to see the public (which is easy enough to fix).
, , ManyToMany . , - , , , (, "", , StackOverflow!).
, Band.id, . , , , Django ModelForms, - "Bands".
, , StackOverflow, - - , Django , , .., .
Auto-Complete ? - , ?
AutoComplete, Autocomplete, , .
/, , Wall Of Text. , .