Forcing content_types.json to be loaded before any other fixtures

2009-01-13 Thread Giovannetti, Mark
Is there a way to force a fixture to be loaded first when running manage.py test? I'd like to load a content_types.json fixture immediately before any other fixtures are loaded. This might fix some of the vexing problems with using content_types and tests. Anyone know if this is possible? Th

Permission model's CharField fields, name and codename, too short

2009-03-19 Thread Giovannetti, Mark
Hi Everyone, Has anyone else run across this? I tried to enter it as a ticket at: http://code.djangoproject.com/simpleticket but was mistaken for a spammer. ;-) Django versions 1.0.x through 1.1 alpha 1, PostgreSQL 8.3.5, Python 2.5.2 django/contrib/auth/models.py I have long model names

RE: Permission model's CharField fields, name and codename, too short

2009-03-20 Thread Giovannetti, Mark
> codename, too short > > > On Thu, 2009-03-19 at 21:58 -0400, Giovannetti, Mark wrote: > > Hi Everyone, > > > > Has anyone else run across this? I tried to enter it as > > a ticket at: > > > > http://code.djangoproject.com/simpleticket > >

Content types and interaction with DeferredAttribute models

2009-11-25 Thread Giovannetti, Mark
FYI: Trying to run unittests. Using the .only() method on a queryset causes the content types machinery to find and attempt to use a model with Deferred attributes. This function (with print and verbosity added): def update_contenttypes(app, created_models, verbosity=2, **kwargs): """

RE: Displaying the fields of two tables on the same admin page

2010-03-31 Thread Giovannetti, Mark
> > I am entering them on the same page otherwise I will have to note down > the ids of people and publications table and then go to bridge table > and insert the ids there. So the reason I want to enter in the same > page is I will insert the ids into bridge table whenever I click save. > I am