hi

I am a beginner with python and django  and am writing my first
application.I need to retrieve some objects of my model class created
at different minutes in an hour.The class stores a datetime value in a
'creationtime'  ( DateTimeField )and have an associated 'subject'
string which can get repeated in many objects(ie  object has one to
many relation with subject).Only the 'creationtime' is unique for an
object.
How can I get a unique object using MyModel.objects. get()? When I
checked the lookup docs ,it says it cannot do lookup on hour or
minute ,but only on year,month,day..
Also I want to display the details of a single object.Do I need to
create a unique slug? Is it possible to create a slug from
DateTimeField 's value? (The prepopulated_fields in ModelAdmin doesn't
accept DateTimeField and ForeignKey ..so I am not sure if I can use it
in slug field).
Also, how should I create the get_absolute_url for the class? If
someone can give any pointers

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to