Create a specific instance in the admin?
If I have models like below where I have a multiple instance of the
base manufacturer (could be inherited or I could just have a OneToOne
relationship):
class Manufacturer(models.Model):
name = models.CharField(max_length=128)
class ManuType1(Manufacturer):
def myfunc(self, str):
return 'manutype1'
class ManuType2(Manufacturer):
def myfunc(self, str):
return 'manutype2'
Is there a way to make the admin allow the selection of the specific
instance (ManuType1, ManuType2 ...) whenever we want to add a new
Manufacturer?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home