Anonymous avatar Anonymous committed cd02eff

some unicode

Comments (0)

Files changed (5)

django_ultrasound/events/models.py

 class Location(models.Model):
     locationName = models.CharField(_('the place the event take place'),max_length=100)
     
+    def __unicode__(self):
+        return self.locationName
+    
 class EventType(models.Model):
     discriptionsType = models.CharField(_('the type of the event '),max_length=100)
     
+    def __unicode__(self):
+        return self.discriptionsType
+    
 class Constraint(models.Model):
     description = models.CharField(_('description'),max_length=100, help_text=_("The description of the constraint"))
     constraint_code = models.TextField(_('constraint code'),max_length=1000,

django_ultrasound/index.yaml

   - name: __key__
     direction: desc
 
+- kind: events_event
+  properties:
+  - name: __key__
+    direction: desc
+
+- kind: events_eventtype
+  properties:
+  - name: __key__
+    direction: desc
+
 - kind: products_product
   properties:
   - name: __key__
     direction: desc
+
+- kind: sales_sale
+  properties:
+  - name: __key__
+    direction: desc
+
+- kind: sales_salestatus
+  properties:
+  - name: __key__
+    direction: desc

django_ultrasound/products/admin.py

     list_display = ["title","price","supplier"]
 
 
-admin.site.register(Product, ProductAdmin)
+admin.site.register(Product, ProductAdmin)
+
+class SupplierNameAdmin(admin.ModelAdmin):
+    pass
+
+
+admin.site.register(SupplierName, SupplierNameAdmin)

django_ultrasound/products/models.py

 # Create your models here.
 
 class SupplierName(models.Model):
-    name = models.CharField(_("home Address"), max_length=100)
+    supplier_name = models.CharField(_("home Address"), max_length=100)
+    
+    def __unicode__(self):
+        return self.name
+    
+        
     
 class Product(models.Model):
     title = models.CharField(_('title'), max_length=200)
     price = models.DecimalField(_("price "), decimal_places=2,max_digits=5)
     supplier  = models.ForeignKey(SupplierName, verbose_name=_("supplier name"), null=True,
-                                            blank=True)
+                                            blank=True)
+    

docs/user to run checkup.txt

 first name : מנהל מסיבות
 last name	: יום שישי
 birthday	: 02/03/1986
-נסיכה
-יהלום אדום
+prince
+red diamond
 100001630676337
 
 מנהל אירועים
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.