you should figure out what it is based on to order these urls.

i use time stamp to order them.


2011/8/10 Andre Lopes <[email protected]>

> Hi,
>
> I'm testing Django for my first project using it.
>
> I have a model like this:
> <code>
> from django.db import models
> import datetime
>
> class Directory(models.Model):
>   website_name = models.CharField(max_length=200)
>   website_url = models.CharField(max_length=200)
>   website_position = models.IntegerField()
>   pub_date = models.DateTimeField('date published')
> </code>
>
> Basicaly this model is for storing URL's, but I need to order them,
> and for that I use "website_position" to control if the link will be
> at the top or at the end or in the middles...
>
> My question is, there is a better way to control the positions of the
> links? Django Admin have any feature that could help to deal with this
> specific case?
>
> Please let me know.
>
> Best Regards,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to