Here is a way that I set up a settings model. class YourSettings(models.Model): ID_CHOICES = ((1,'Settings is a single record'),) id = models.IntegerField(primary_key=True, choices=ID_CHOICES, default=1) ... then the other fields for your settings.
On May 4, 12:11 am, Toninho Nunes <toninhonu...@gmail.com> wrote: > Hi, > > I have a table named Config, I need just only to limit to one record, > are there a method or property to do this? any tip ou advice how to > proceed? I use the admin.ModelAdmin. > > details: > Django Version 1.3 > Ubuntu 10.10 - 64bits > PostGresql 8.4 > > Thanks, > > Toninho Nunes -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.